xen: Use $(CONFIG_CC_IS_CLANG) instead of $(clang) in Makefile
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 11 Dec 2019 15:27:33 +0000 (15:27 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 30 Jan 2020 11:54:33 +0000 (11:54 +0000)
commit67c5d662d768311fae9c7035b305078b81b23909
treeabdaa0bc6292d716472e33a3ff9003991bccd54a
parentc3333c3a5d1224513f801aed11953234851bbf96
xen: Use $(CONFIG_CC_IS_CLANG) instead of $(clang) in Makefile

Kconfig can check if $(CC) is clang or not, if it is
CONFIG_CC_IS_CLANG will be set.

With that patch, the hypervisor can be built using clang by running
`make CC=clang CXX=clang++` without needed to provide an extra clang
parameter.

`make clang=y` still works as Config.mk will set CC and CXX.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/Rules.mk
xen/arch/x86/Rules.mk
xen/common/coverage/Makefile
xen/include/Makefile